package com.gel.shortLink.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gel.shortLink.dao.entity.LinkDeviceStatsDO;
import com.gel.shortLink.dto.req.ShortLinkGroupStatsReqDTO;
import com.gel.shortLink.dto.req.ShortLinkStatsReqDTO;

import java.util.List;

public interface LinkDeviceStatsMapper extends BaseMapper<LinkDeviceStatsDO> {
    void shortLinkDeviceStats(LinkDeviceStatsDO linkDeviceStatsDO);

    /*根据短链接获取指定时间内的设备信息*/
    List<LinkDeviceStatsDO> listDeviceStatsByShortLink(ShortLinkStatsReqDTO requestParam);
    /*根据分组获取指定时间内的设备信息*/
    List<LinkDeviceStatsDO> listDeviceStatsByGroup(ShortLinkGroupStatsReqDTO requestParam);
}
